package ua.org.extjsbuilder.editors;

import org.eclipse.ui.editors.text.TextEditor;

public class JSEditor extends TextEditor {
	
	private ColorManager colorsManager;
	
	public JSEditor() {
		colorsManager = new ColorManager();
		setSourceViewerConfiguration(new JSConfiguration(colorsManager));
		setDocumentProvider(new JSDocumentProvider(colorsManager));
	}
	
	public void dispose() {
		colorsManager.dispose();
		super.dispose();
	}
}
